package com.guigu.www.denghao.service.impl;

import com.guigu.www.denghao.service.DHRoleService;
import com.guigu.www.mapper.RoleMapper;
import com.guigu.www.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DHRoleServiceImpl implements DHRoleService {

    @Autowired
    private RoleMapper roleMapper;


    @Override
    public List<Role> findAllRole() {
        return roleMapper.selectList(null);
    }
}
